﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.AccountsDomain
{
   public class AccountsTransaction
    {
        #region Properties
        public Guid ID { get; set; }
        public string Title { get; set; }
        public DateTime DateAndTime { get; set; }
        public decimal Amount { get; set; }
        public string Narration { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public int FinancialYearID { get; set; }
        public int AccountsTransactionTypeID { get; set; } 
        #endregion
        
        #region NavigationalProperties
       [ForeignKey("FinancialYearID")]
        public virtual FinancialYear FinancialYear { get; set; }
       [ForeignKey("AccountsTransactionTypeID")]
        public virtual AccountsTransactionType TransactionType { get; set; }
         public virtual ICollection<AccountsEntry> Entries { get; set; }        
        #endregion

    }
}
